package org.huangrui.func;


import org.springframework.ai.tool.annotation.Tool;

import java.util.function.Function;

/**
 * @Author hr
 * @Create 2025-11-11 23:33
 **/
public class RecruitServiceFunction implements Function<RecruitServiceFunction.Request, RecruitServiceFunction.Response> {
    @Override
    @Tool(description = "判断某某是否可以面试")
    public  Response apply(Request request) {
        String position="未知";
        if(request.name.contains("张三")){
            position="算法工程师";
        }
        return new Response(position);
    }

    public record Request(String name){ }
    public record Response(String position){ }
}
